import { legacy_createStore as createStore, combineReducers,applyMiddleware } from 'redux'
import countReducer from '../reducer/account'
import pathReducer from "../reducer/path"
import BreadReducer from '../reducer/bread'
import ExcelReducer from '../reducer/excel'
import fileMnaner from '../reducer/fileManner'
import pdfReducer from '../reducer/pdf'
import thunk from "redux-thunk"

export interface ReducersType{
    countReducer:any,
    pathReducer:any,
    BreadReducer:any,
    ExcelReducer:any,
    fileMnaner:any,
    pdfReducer:any
}

let Reducers:ReducersType = {
    countReducer,pathReducer,BreadReducer,ExcelReducer,fileMnaner,pdfReducer
}


const reducer = combineReducers(Reducers)

export default createStore(reducer,applyMiddleware(thunk))

